package com.Fengxwgl.entity;

public class User {
    private Integer uid;
    private String phone;
    private String password;
    private String nicheng;
    private Integer xingbie;
    private Integer age;
    private Integer dengji;
    private Integer jingyan;
    private String touxiang;

    public Integer getJingyan() {
        return jingyan;
    }

    public void setJingyan(Integer jingyan) {
        this.jingyan = jingyan;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNicheng() {
        return nicheng;
    }

    public void setNicheng(String nicheng) {
        this.nicheng = nicheng;
    }

    public Integer getXingbie() {
        return xingbie;
    }

    public void setXingbie(Integer xingbie) {
        this.xingbie = xingbie;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getDengji() {
        return dengji;
    }

    public void setDengji(Integer dengji) {
        Integer dengji1=0;
       if(dengji>=10){dengji1=1;}
        if(dengji>=50){dengji1=2;}
        if(dengji>=150){dengji1=3;}
        if(dengji>=500){dengji1=4;}
        this.dengji=dengji1;
    }

    public String getTouxiang() {
        return touxiang;
    }

    public void setTouxiang(String touxiang) {
        this.touxiang = touxiang;
    }
}
